package cloud.ben.smallscalepigfarmmanagementsystem.entity.pig;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author: Ben
 * @Date: 2022/4/3 19:05
 */
@ApiModel(description = "生猪存栏情况信息表")
@TableName("pig_living_situation")
@Data
public class PigLivingSituation {

    /**
     *id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(required = true,value = "id")
    private Integer id;

    /**
     *存栏数量
     */
    @ApiModelProperty(required = true,value = "存栏数量")
    @NotNull(message = "存栏数量为空")
    private Integer count;


    public PigLivingSituation(Integer id, Integer count) {
        this.id = id;
        this.count = count;
    }

    public PigLivingSituation() {
    }

    public PigLivingSituation(Integer count) {
        this.count = count;
    }
}
